package com.example.fruitdemo.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("tb_good_pay")
public class GoodPay {
    private Long id;
    private String goodname;
    private Integer number;
    private Double signalprice;
    private Double totalprice;

    private Long goodid;
    private Long orderid;
    private Long userid;
    private Long receiverid;

    private String pic;

    @TableField(value = "createtime",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private LocalDateTime createtime;

    @TableField(value = "updatetime",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private LocalDateTime updatetime;
}
